package c.h.a.v;

import android.os.Bundle;
import c.e.a.b.e.c.b0;
import c.e.a.b.e.c.g;
import c.e.a.b.e.c.n;
import c.h.a.m0.i;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.liuzh.deviceinfo.DeviceInfoApp;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/* compiled from: DevInfoAnalytics */
public class a implements b {
    public static List<b> a = new ArrayList();
    public static a b = new a();

    public void a(String str) {
        c(str, null);
    }

    public void b(String str, String str2) {
        g gVar = FirebaseAnalytics.getInstance(DeviceInfoApp.c).a;
        Objects.requireNonNull(gVar);
        gVar.c.execute(new b0(gVar, null, str, str2, false));
        for (b b : a) {
            b.b(str, str2);
        }
    }

    public void c(String str, Bundle bundle) {
        i iVar = i.a;
        iVar = i.a;
        if (i.b.getBoolean("user_experience_improvement_plan", true)) {
            FirebaseAnalytics.getInstance(DeviceInfoApp.c).a.c(null, str, bundle, false, true, null);
            for (b bVar : a) {
                if (bundle == null) {
                    bVar.a(str);
                } else {
                    bVar.c(str, bundle);
                }
            }
        }
    }

    public void setEnabled(boolean z) {
        g gVar = FirebaseAnalytics.getInstance(DeviceInfoApp.c).a;
        Boolean valueOf = Boolean.valueOf(z);
        Objects.requireNonNull(gVar);
        gVar.c.execute(new n(gVar, valueOf));
        for (b enabled : a) {
            enabled.setEnabled(z);
        }
    }
}
